📘 Free PROFESSIONAL-CLOUD-ARCHITECT Sample Questions
Your company has decided to make a major revision of their API in order to create better experiences for their
developers. They need to keep the old version of the API available and deployable, while allowing new customers
and testers to try out the new API. They want to keep the same SSL and DNS records in place to serve both APIs.
What should they do?
A
Configure a new load balancer for the new version of the API
B
Reconfigure old clients to use a new endpoint for the new API
C
Have the old API forward traffic to the new API based on the path
D
Use separate backend pools for each API path behind the load balancer
Correct Answer:
D. Use separate backend pools for each API path behind the load balancer
Explanation:
D is the answer because HTTP(S) load balancer can direct traffic reaching a single IP to different backends
based on the incoming URL. A is not correct because configuring a new load balancer would require a new or
different SSL and DNS records which conflicts with the requirements to keep the same SSL and DNS records.
B is not correct because it goes against the requirements. The company wants to keep the old API available
while new customers and testers try the new API. C is not correct because it is not a requirement to
decommission the implementation behind the old API. Moreover, it introduces unnecessary risk in case bugs
or incompatibilities are discovered in the new API.
Your company plans to migrate a multi-petabyte data set to the cloud. The data set must be available 24hrs a day.
Your business analysts have experience only with using a SQL interface.
How should you store the data to optimize it for ease of analysis?
A
Load data into Google BigQuery
B
Insert data into Google Cloud SQL
C
Put flat files into Google Cloud Storage
D
Stream data into Google Cloud Datastore
Correct Answer:
A. Load data into Google BigQuery
Explanation:
BigQuery is Google's serverless, highly scalable, low cost enterprise data warehouse designed to make all
your data analysts productive. Because there is no infrastructure to manage, you can focus on analyzing data
to find meaningful insights using familiar SQL and you don't need a database administrator.
BigQuery enables you to analyze all your data by creating a logical data warehouse over managed, columnar
storage as well as data from object storage, and spreadsheets.
Reference:
https://cloud.google.com/bigquery/
The operations manager asks you for a list of recommended practices that she should consider when migrating a
J2EE application to the cloud.
Which three practices should you recommend? (Choose three.)
A
Port the application code to run on Google App Engine
B
Integrate Cloud Dataflow into the application to capture real-time metrics
C
Instrument the application with a monitoring tool like Stackdriver Debugger
D
Select an automation framework to reliably provision the cloud infrastructure
E
Deploy a continuous integration tool with automated testing in a staging environment
F
Migrate from MySQL to a managed NoSQL database like Google Cloud Datastore or Bigtable
Correct Answer:
C. Instrument the application with a monitoring tool like Stackdriver Debugger
Explanation:
CDE looks like correct .
Porting a J2EE application to App Engine will not work as its is - there are three arpproach for migration -
There are three major types of migrations:
Lift and shift
Improve and move
Rip and replace
So Option A can be discarded .
So the answer is CDE .
A news feed web service has the following code running on Google App Engine. During peak load, users report that
they can see news articles they already viewed.
What is the most likely cause of this problem?
A
The session variable is local to just a single instance
B
The session variable is being overwritten in Cloud Datastore
C
The 65URL of the API needs to be modified to prevent caching
D
The HTTP Expires header needs to be set to -1 stop caching
Correct Answer:
A. The session variable is local to just a single instance
Explanation:
It's A. AppEngine spins up new containers automatically according to the load. During peak traffic, HTTP
requests originated by the same user could be served by different containers. Given that the variable
`sessions` is recreated for each container, it might store different data.
The problem here is that this Flask app is stateful. The `sessions` variable is the state of this app. And stateful
variables in AppEngine / Cloud Run / Cloud Functions are problematic.
A solution would be to store the session in some database (e.g. Firestore, Memorystore) and retrieve it from
there. This way the app would fetch the session from a single place and would be stateless.
An application development team believes their current logging tool will not meet their needs for their new cloud -
based product. They want a better tool to capture errors and help them analyze their historical log data. You want
to help them find a solution that meets their needs.
What should you do?
A
Direct them to download and install the Google StackDriver logging agent
B
Send them a list of online resources about logging best practices
C
Help them define their requirements and assess viable logging tools
D
Help them upgrade their current tool to take advantage of any new features
Correct Answer:
C. Help them define their requirements and assess viable logging tools
Explanation:
Never impose tools for customers, It is not Good Professional Practice. Indeed, there deploying to GCP, but
You need to understand the Monitoring and Logging Requirements to be effective in your proposal.
Remember, Monitoring and Logging have a Cost associate.
You need to reduce the number of unplanned rollbacks of erroneous production deployments in your company's
web hosting platform. Improvement to the QA/
Test processes accomplished an 80% reduction.
Which additional two approaches can you take to further reduce the rollbacks? (Choose two.)
A
Introduce a green-blue deployment model
B
Replace the QA environment with canary releases
C
Fragment the monolithic platform into microservices
D
Reduce the platform's dependency on relational database systems
E
Replace the platform's relational database systems with a NoSQL database
Correct Answer:
A. Introduce a green-blue deployment model
Explanation:
But, ATENTION...the model is called BLUE GREEN DEPLOYMENT no GREEN BLUE in the A option.
To reduce costs, the Director of Engineering has required all developers to move their development infrastructure
resources from on-premises virtual machines
(VMs) to Google Cloud Platform. These resources go through multiple start/stop events during the day and require
state to persist. You have been asked to design the process of running a development environment in Google Cloud
while providing cost visibility to the finance department.
Which two steps should you take? (Choose two.)
A
Use the - -no-auto-delete flag on all persistent disks and stop the VM
B
Use the - -auto-delete flag on all persistent disks and terminate the VM
C
Apply VM CPU utilization label and include it in the BigQuery billing export
D
Use Google BigQuery billing export and labels to associate cost to groups
E
Store all state into local SSD, snapshot the persistent disks, and terminate the VM
F
Store all state in Google Cloud Storage, snapshot the persistent disks, and terminate the VM
Correct Answer:
A. Use the - -no-auto-delete flag on all persistent disks and stop the VM
Explanation:
A is correct because persistent disks will not be deleted when an instance is stopped.
D is correct because exporting daily usage and cost estimates automatically throughout the day to a
BigQuery dataset is a good way of providing visibility to the finance department. Labels can then be used to
group the costs based on team or cost center.
Your company wants to track whether someone is present in a meeting room reserved for a scheduled meeting.
There are 1000 meeting rooms across 5 offices on 3 continents. Each room is equipped with a motion sensor that
reports its status every second. The data from the motion detector includes only a sensor ID and several different
discrete items of information. Analysts will use this data, together with information about account owners and
office locations.
Which database type should you use?
A
Flat file
B
NoSQL
C
Relational
D
Blobstore
Correct Answer:
B. NoSQL
Explanation:
Relational databases were not designed to cope with the scale and agility challenges that face modern
applications, nor were they built to take advantage of the commodity storage and processing power available
today.
NoSQL fits well for:
? Developers are working with applications that create massive volumes of new, rapidly changing data types "
structured, semi-structured, unstructured and polymorphic data.
Incorrect Answers:
D: The Blobstore API allows your application to serve data objects, called blobs, that are much larger than the
size allowed for objects in the Datastore service.
Blobs are useful for serving large files, such as video or image files, and for allowing users to upload large
data files.
Reference:
https://www.mongodb.com/nosql-explained
You set up an autoscaling instance group to serve web traffic for an upcoming launch. After configuring the
instance group as a backend service to an HTTP(S) load balancer, you notice that virtual machine (VM) instances
are being terminated and re-launched every minute. The instances do not have a public IP address.
You have verified the appropriate web response is coming from each instance using the curl command. You want to ensure the backend is configured correctly.
What should you do?
A
Ensure that a firewall rules exists to allow source traffic on HTTP/HTTPS to reach the load balancer.
B
Assign a public IP to each instance and configure a firewall rule to allow the load balancer to reach the
instance public IP.
C
Ensure that a firewall rule exists to allow load balancer health checks to reach the instances in the instance
group.
D
Create a tag on each instance with the name of the load balancer. Configure a firewall rule with the name of
the load balancer as the source and the instance tag as the destination.
Correct Answer:
C. Ensure that a firewall rule exists to allow load balancer health checks to reach the instances in the instance
group.
Explanation:
The best practice when configuration a health check is to check health and serve traffic on the same port.
However, it is possible to perform health checks on one port, but serve traffic on another. If you do use two
different ports, ensure that firewall rules and services running on instances are configured appropriately. If
you run health checks and serve traffic on the same port, but decide to switch ports at some point, be sure to
update both the backend service and the health check.
Backend services that do not have a valid global forwarding rule referencing it will not be health checked and
will have no health status.
Reference:
https://cloud.google.com/compute/docs/load-balancing/http/backend-service
You write a Python script to connect to Google BigQuery from a Google Compute Engine virtual machine. The
script is printing errors that it cannot connect to
BigQuery.
What should you do to fix the script?
A
Install the latest BigQuery API client library for Python
B
Run your script on a new virtual machine with the BigQuery access scope enabled
C
Create a new service account with BigQuery access and execute your script with that user
D
Install the bq component for gcloud with the command gcloud components install bq
Correct Answer:
C. Create a new service account with BigQuery access and execute your script with that user
Explanation:
1. C - Service accounts with limited access are a best practice.The use of Access scopes (Option B) is only
recommended when using default service accounts, which is not a good practice recommendation either.
2. C. Create a new service account with BigQuery access and execute your script with that userService
account is always a preferred option.
Questions: 1-10 out of 481
Continue Full Practice..
GET ALL 481 QUESTIONS